package com.husd.framework.code;

import com.husd.framework.ddl_new.CheckConstraintDefinition;
import lombok.Data;

/**
 * @author shengdonghu@126.com
 * @date 2024/1/23 18:08
 */
@Data
public class DDLIndex {

    private String pre = "";
    private String indexName;
    private String indexType;
    private String keyPart;
    private String colName; // 设置外键的时候才有
    private String indexOption;

    private String constraint;

    // 索引的类型 分以下几种
    private boolean normal = true; //1
    private boolean fullText; //2
    private boolean spatial; //2
    private boolean primary; //3
    private boolean unique; //4
    private boolean foreign; //5

    private ReferenceDefinition referenceDefinition;
    private CheckConstraintDefinition checkConstraintDefinition;
}
